<template>
<div>
  <div>123</div>
  <img :src="this.img">
</div>
</template>

<script>
import {PhotoGet,PhotoPost} from "@/requests/api";
export default {
  name: "PhotoShow",
  data(){
    return{
      img:''
    }
  },
  methods:{
    GetPhoto(){
      PhotoGet().then(
          (res)=> {
            console.log(res)
            //console.log(window.URL.createObjectURL(res))
            this.img=window.URL.createObjectURL(res)
          }
      )
    },
  },
  mounted() {
    this.GetPhoto()
  }
}
</script>

<style scoped>

</style>
